<%-- 
    Document   : post_jobs_edit
    Created on : Apr 13, 2012, 7:11:20 PM
    Author     : Vishwakarma
--%>

<%@page import="java.text.SimpleDateFormat"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<%@include file="header.jsp" %>
<script>
    $(document).ready(function(){
        $("#EditPostedJob").validationEngine();

        $('#walkindate').datepicker({
            dateFormat: 'dd-M-yy',
            inline: true
        });

        $('#validuntil').datepicker({
            dateFormat: 'dd-M-yy',
            inline: true
        });
    });
</script>
<%@page import="java.sql.*"%>
<%@page import="jobportal.Dbconn"%>
<%
            try {
                Connection con = Dbconn.getConn();
                Statement st = con.createStatement();
                ResultSet rs = st.executeQuery("select * from jobs where compid= '" + session.getAttribute("username") + "'");
                rs.next();

%>

<div class="mainheading_emp" style="clear:both;">Modify Posted Job</div>
<br class="clear" />
<form action="EditPostedJob" method="post" name="EditPostedJob" id="EditPostedJob">
    <table width="100%" border="0" cellpadding="0" cellspacing="0" >

        <tr>
            <td align="left" valign="top"><table width="100%" border="0" cellpadding="1" cellspacing="0">
                    <tr>
                        <td height="21" align="center" valign="middle"><table width="100%" border="0" align="center" cellpadding="1" cellspacing="0" >
                                <tr>
                                    <td colspan="3" align="left" class="sde_mnu_hdr_blue">Job Description </td>
                                </tr>
                                <tr>
                                    <td width="29%" height="23" align="left" valign="middle"  style="padding-left:5px;">Job Title<span class="messagesred">*</span> </td>
                                    <td width="0%" align="center" valign="middle">&nbsp;</td>
                                    <td width="71%" align="left" valign="middle"><span >
                                            <input name="jobtitle" class="validate[required],custom[onlyLetterSp], textbox" id="jobtitle" size="50" maxlength="255" autocomplete="off" value="<%=rs.getString("jobtitle")%>"/><span id="check_jobtitle"></span>
                                        </span></td>
                                </tr>

                                <tr>
                                    <td height="66" align="left" valign="top"  style="padding-left:5px;">Job Meta Keywords<span class="messagesred">*<br />
                                            <span class="style1">(For topping the  Search Result)</span></span></td>
                                    <td align="center" valign="top">&nbsp;</td>
                                    <td align="left" valign="top"><textarea name="metakeys" id="metakeys"  class="validate[required,length[3,140]]" style="width:250px; height:100px;"><%=rs.getString("metakeys")%></textarea>
                                        <br />
                                        <strong>Note</strong> : Separate each keyword with comma(,) <strong>example</strong>: php, asp, flash and so on....</td>
                                </tr>

                                <!--<tr>
                                  <td height="42" colspan="3" align="left" valign="top"  style="padding-left:5px;"><span style="color:#0000FF;font-size:20px;">*</span><strong></strong></td>
                                  </tr>-->

                                <tr>
                                    <td align="left" valign="top"  style="padding-left:5px;">Job Description<span class="messagesred">*</span></td>
                                    <td align="center" valign="top">&nbsp;</td>
                                    <td align="left" valign="top"><textarea name="jobdesc" id="jobdesc" class="validate[required,length[50,440]]" style="width:500px; height:200px;"><%=rs.getString("jobdesc")%></textarea>
                                        <br />
                                        Note: Please use shift+enter for leaving a Single Line in between Paragraphs.   </td>
                                </tr>
                                <tr>
                                    <td align="left" valign="top"  style="padding-left:5px;"><span  style="padding-left:5px;">Desired Profile<span class="messagesred">*</span></span></td>
                                    <td align="center" valign="top">&nbsp;</td>
                                    <td align="left" valign="top"><textarea name="desired_profile" id="desired_profile" class="validate[required,minSize[50],maxSize[500]]" style="width:500px; height:200px;"><%=rs.getString("jobdesc")%></textarea></td>
                                </tr>
                                <tr>
                                    <td align="left" valign="top"  style="padding-left:5px;">Test Venue<span class="messagesred">*</span></td>
                                    <td align="center" valign="top">&nbsp;</td>
                                    <td align="left" valign="top"><input type="text" name="venue" id="venue" value="<%=rs.getString("venue")%>" class="validate[required]" />&nbsp;</td>
                                </tr>
                                <tr>
                                    <td align="left" valign="top"  style="padding-left:5px;">Walk in Date<span class="messagesred">*</span></td>
                                    <td align="center" valign="top">&nbsp;</td>
                                    <td align="left" valign="top"><span >
                                            <%
                                                            java.util.Date dt = rs.getDate("walkindate");
                                                            SimpleDateFormat s = new SimpleDateFormat("dd-MMM-yyyy");
                                                            String walkindate = s.format(dt);
                                                            dt = rs.getDate("validuntil");
                                                            String validuntil = s.format(dt);
                                            %>
                                            <input name="walkindate"  class="validate[required] textbox" id="walkindate" size="20" autocomplete="off" readonly="readonly" value="<%=walkindate%>"  />
                                        </span></td>
                                </tr>
                                <tr>
                                    <td align="left" valign="top"  style="padding-left:5px;">Valid Until<span class="messagesred">*</span></td>
                                    <td align="center" valign="top">&nbsp;</td>
                                    <td align="left" valign="top"><span >
                                            <input name="validuntil" class="validate[required] textbox" id="validuntil" size="20" autocomplete="off" readonly="readonly" value="<%=validuntil%>"/>
                                        </span></td>
                                </tr>
                            </table></td>
                    </tr>
                    <tr>
                        <td height="21" align="left" valign="middle">&nbsp;</td>
                    </tr>
                    <tr>
                        <td align="center" valign="middle"><table width="100%" border="0" cellpadding="1" cellspacing="0" >
                                <tr>
                                    <td height="21" colspan="6" align="left" valign="middle"  class="sde_mnu_hdr_blue">Matching Criteria </td>
                                </tr>
                                <tr>
                                    <td width="29%" height="23" align="left" valign="middle"  style="padding-left:5px;">Gender<span class="messagesred">* </span></td>
                                    <td width="0%" height="23" align="center" valign="middle">&nbsp;</td>
                                    <td width="71%" height="23" colspan="4" align="left" valign="middle" >
                                        <input type="text" name="gender" value="<%=rs.getString("gender")%>" readonly/>
                                        </td>
                                </tr>
                                <tr>
                                    <td width="29%" height="23" align="left" valign="middle"  style="padding-left:5px;">Nationality</td>
                                    <td width="0%" height="23" align="center" valign="middle">&nbsp;</td>
                                    <td height="23" colspan="4" align="left" valign="middle" ><input type="text" name="nationality" id="nationality" class="validate[required],custom[onlyLetterSp]" value="<%=rs.getString("nationality")%>" /></td>
                                </tr>
                                <tr>
                                    <td height="30" align="left" valign="middle"  style="padding-left:5px;">Employment Type <span class="messagesred">* </span></td>
                                    <td height="30" align="center" valign="middle">&nbsp;</td>
                                    <td height="30" colspan="4" align="left" valign="middle"><span >
                                            <select name="emp_type" id="emp_type" class="validate[required],listmenu" style="width:190px;">
                                                <option value="<%=rs.getString("emptype")%>" selected="selected"><%=rs.getString("emptype")%></option>
                                                <option  value="Permanent">Permanent</option>
                                                <option  value="Temporary">Temporary</option>
                                                <option value="Perm & Temp">Perm & Temp </option>
                                                <option value="Part Time">Part Time</option>
                                            </select>
                                        </span></td>
                                </tr>
                                <tr>
                                    <td height="30" align="left" valign="middle"  style="padding-left:5px;">Career Level  <span class="messagesred">* </span></td>
                                    <td height="30" align="center" valign="middle">&nbsp;</td>
                                    <td height="30" colspan="4" align="left" valign="middle"><span class="elements">
                                            <select name="careerlevel" class="validate[required], listmenu" id="select2" style="width:190px;">

                                                <option value="">Select Career Level</option>
                                                <option value="<%=rs.getString("careerlevel")%>" selected="selected" >
                                                    <%
                                                    switch(rs.getInt("careerlevel")){
                                                        case 1: out.println("");
                                                    }
                                                    %>

                                                </option>
                                                <option value="Fresher">Fresher</option>
                                                <option value="Graduate">Graduate</option>
                                                <option value="Management Level">Management Level</option>
                                                <option value="Master in computer">Master in computer</option>
                                                <option value="Mid Career Level">Mid Career Level</option>
                                                <option value="Student">Student</option>
                                            </select>
                                        </span></td>
                                </tr>
                                <tr>
                                    <td height="33" align="left" valign="middle"  style="padding-left:5px;">Job Role <span class="messagesred">* </span></td>
                                    <td height="33" align="center" valign="middle">&nbsp;</td>
                                    <td height="33" colspan="4" align="left" valign="middle"><span class="elements"><span >
                                                <input name="jobrole" type="text" class="validate[required],custom[onlyLetterSp],textbox" id="jobrole" maxlength="35" size="30" value="<%=rs.getString("jobrole")%>" />
                                            </span></span></td>
                                </tr>
                                <tr>
                                    <td height="23" align="left" valign="middle"  style="padding-left:5px;">Functional area of vacancy<span class="messagesred">*</span></td>
                                    <td height="31" align="center" valign="middle">&nbsp;</td>
                                    <td height="31" colspan="4" align="left" valign="middle">

                                        <select name="category" style="width:190px;" class="validate[required],listmenu" id="category" onchange="showsubcat(this.value)">
                                            <option value="">Select Functional Area</option>
                                            <option value="<%=rs.getString("funarea")%>" selected="selected"><%=rs.getString("funarea")%>
                                            <option value="Accounting-Tax/Consulting">Accounting-Tax/Consulting</option>
                                            <option value="Architecture Interior Design">Architecture Interior Design</option>
                                            <option value="Automobiles">Automobiles</option>
                                            <option value="Banking/Financial">Banking/Financial</option>
                                            <option value="Biotech/Pharma">Biotech/Pharma</option>
                                            <option value="BPO/KPO">BPO/KPO</option>
                                            <option value="Business management">Bussiness management</option>
                                            <option value="Construction/Engineering">Construction/Engineering</option>
                                            <option value="Entertainment/Media">Entertainment/Media</option>
                                            <option value="Graphic/Web Design">Graphic / Web Design</option>
                                            <option value="IT Hardware/Telecom">IT Hardware/Telecom</option>
                                            <option value="IT/Softwar Services">IT/Software Services</option>
                                            <option value="Software Development & Sales">Software Development & Sales</option>
                                            <option value="Supply Chain/purchase">Supply Chain/Purchase</option>
                                        </select>              </td>
                                </tr>

                                <tr>
                                    <td height="32" align="left" valign="middle"  style="padding-left:5px;">Qualification<span class="messagesred">* </span></td>
                                    <td height="32" align="center" valign="middle">&nbsp;</td>
                                    <td height="32" colspan="4" align="left" valign="middle"><font size="2" face="Arial, Helvetica, sans-serif">
                                            <select name="qual" class="validate[required], listmenu" id="qual" style="width:190px;" >
                                                <option value="">Select Qualification</option>
                                                <option value="<%=rs.getString("qualification")%>" selected="selected"><%=rs.getString("qualification")%>
                                                <option value="">Any Graduate</option>
                                                <option value="B.Arch">B. Arch</option>
                                                <option value="B.B.A">B.B.A</option>
                                                <option value="B.C.A">B.C.A</option>
                                                <option value="B.C.S">B.C.S</option>
                                                <option value="B.Com">B.Com</option>
                                                <option value="B.E/B.Tech">B.E / B.Tech</option>
                                                <option value="B.Ed">B.Ed</option>
                                                <option value="B.H.M">B.H.M</option>
                                                <option value="B.L.I Sc">B.L.I Sc</option>
                                                <option value="B.L/LLB">B.L/ LLB</option>
                                                <option value="B.Music">B.Music</option>
                                                <option value="B.Pharm">B.Pharm</option>
                                                <option value="BCA">BCA</option>
                                                <option value="BE">BE</option>
                                                <option value="Civil">Civil</option>
                                                <option value="Diploma in Computer Science">Diploma in Computer Science</option>
                                                <option value="I.C.W.A">I.C.W.A</option>
                                                <option value="M.B.A/P G.D.M/PGDBA">M.B.A / P G.D.M / PGDBA</option>
                                                <option value="MCA/PGDCA">MCA/PGDCA</option>
                                                <option value="M.C.M">M.C.M</option>
                                                <option value="M.Com">M.Com</option>
                                                <option value="M.D/Ms">M.D/Ms</option>
                                                <option value="M.E/M Tech">M.E/M Tech</option>
                                                <option value="MBA/PGDM">MBA/PGDM</option>
                                                <option value="NA">NA</option>
                                                <option value="P.G Diploma">P.G Diploma</option>
                                            </select>
                                        </font></td>
                                </tr>


                                <tr>
                                    <td height="34" align="left" valign="middle"  style="padding-left:5px;">Experience (in   years)<span class="messagesred">*</span></td>
                                    <td height="34" align="center" valign="middle">&nbsp;</td>
                                    <td height="34" colspan="4" align="left" valign="middle"><span >
                                            <select name="minexp" class="validate[required], listmenu_small" id="minexp">
                                                <option value="">Min</option>
                                                <option value="<%=rs.getString("minexp")%>" selected="selected"><%=rs.getString("minexp")%></option>
                                                <option value="0">0</option>
                                                <option value="1">1</option>
                                                <option value="2">2</option>
                                                <option value="3">3</option>
                                                <option value="4">4</option>
                                                <option value="5">5</option>
                                                <option value="6">6</option>
                                                <option value="7">7</option>
                                                <option value="8">8</option>
                                                <option value="9">9</option>
                                                <option value="10">10</option>
                                                <option value="11">11</option>
                                                <option value="12">12</option>
                                                <option value="13">13</option>
                                                <option value="14">14</option>
                                                <option value="15">15</option>
                                                <option value="16">16</option>
                                                <option value="17">17</option>
                                                <option value="18">18</option>
                                                <option value="19">19</option>
                                                <option value="20">20</option>
                                                <option value="21">21</option>
                                                <option value="22">22</option>
                                                <option value="23">23</option>
                                                <option value="24">24</option>
                                                <option value="25">25</option>
                                            </select>
                                            to<select name="maxexp" class="validate[required],listmenu_small" id="maxexp">
                                                <option value="">Max</option>
                                                <option value="<%=rs.getString("maxexp")%>" selected="selected"><%=rs.getString("maxexp")%></option>
                                                <option value="0">0</option>
                                                <option value="1">1</option>
                                                <option value="2">2</option>
                                                <option value="3">3</option>
                                                <option value="4">4</option>
                                                <option value="5">5</option>
                                                <option value="6">6</option>
                                                <option value="7">7</option>
                                                <option value="8">8</option>
                                                <option value="9">9</option>
                                                <option value="10">10</option>
                                                <option value="11">11</option>
                                                <option value="12">12</option>
                                                <option value="13">13</option>
                                                <option value="14">14</option>
                                                <option value="15">15</option>
                                                <option value="16">16</option>
                                                <option value="17">17</option>
                                                <option value="18">18</option>
                                                <option value="19">19</option>
                                                <option value="20">20</option>
                                                <option value="21">21</option>
                                                <option value="22">22</option>
                                                <option value="23">23</option>
                                                <option value="24">24</option>
                                                <option value="25">25</option>
                                            </select>

                                            Years of Experience</span></td>
                                </tr>
                                <tr>
                                    <td height="34" align="left" valign="middle"  style="padding-left:5px;">Salary</td>
                                    <td height="34" align="center" valign="middle">&nbsp;</td>
                                    <td height="34" colspan="4" align="left" valign="middle"><span >
                                            Upto
                                            <input name="salary" class="validate[required,custom[number]] input_small" id="salary" size="10" autocomplete="off" value="<%=rs.getString("salary")%>" />
                                            <span >
                                                <select name="current_sal_per" id="current_sal_per" class="validate[required],listmenu_small" >

                                                    <option value="<%=rs.getString("salarytype")%>" selected="selected"><%=rs.getString("salarytype")%></option>
                                                    <option value="Anually">Anually</option>
                                                    <option value="Daily">Daily</option>
                                                    <option value="Hourly">Hourly</option>
                                                    <option value="Monthly">Monthly</option>
                                                    <option value="Weekly">Weekly</option>
                                                </select>
                                            </span><span > in INR</span></td>
                                </tr>

                                <tr>
                                    <td height="60" align="left" valign="top"  style="padding-left:5px;">Key Skills<span class="messagesred">* </span></td>
                                    <td height="60" align="center" valign="top">&nbsp;</td>
                                    <td height="60" colspan="4" align="left" valign="top"><span ><span >
                                                <textarea class="validate[required],textbox" id="keyskill" name="keyskill" rows="3" cols="40"><%=rs.getString("keyskill")%></textarea>
                                            </span></span></td>
                                </tr>
                                <tr>
                                    <td height="23" rowspan="2" align="left" valign="top"  style="padding-left:5px;">Job location<span class="messagesred">* </span></td>
                                    <td height="31" align="center" valign="top">&nbsp;</td>
                                    <td height="31" colspan="4" align="left" valign="top" bordercolor="#111111" class="elements"><label>
                                            <input type="text" name="joblocation" id="joblocation" class="validate[required],custom[onlyLetterSp]" value="<%=rs.getString("joblocation")%>" />
                                        </label></td>
                                </tr>


                            </table></td>
                    </tr>
                    <tr>
                        <td align="center" valign="top"><table width="100%" border="0" cellpadding="1" cellspacing="0" >
                                <tr>
                                    <td height="21" colspan="3" align="left" valign="middle"  class="sde_mnu_hdr_blue">Contact Details <span class="messagesred">* </span></td>
                                </tr>

                                <tr>

                                    <td width="80%" align="left" valign="top"><table width="100%" border="0">
                                            <tr>
                                                <td ><strong>Name</strong><span id="check_contactname"></span></td>
                                                <td ><strong>Phone</strong></td>
                                                <td ><strong>Email </strong></td>
                                            </tr>
                                            <tr>
                                                <td width="16%"><input name="contname" class="validate[required], custom[onlyLetterSp],textbox" id="contname" autocomplete="off" value="<%=rs.getString("contname")%>" /></td>
                                                <td width="24%"><input name="contphone" class="validate[required], custom[phone],textbox" id="contphone" autocomplete="off" value="<%=rs.getString("contphone")%>" /></td>
                                                <td width="60%"><input name="contemail" class="validate[required], custom[email], textbox" id="contemail" size="40" autocomplete="off" value="<%=rs.getString("contemail")%>" /></td>
                                            </tr>

                                            <tr>
                                                <td height="30" colspan="3"><strong>Note</strong>:All emails related to this Job will be sent to the above contact details..... </td>
                                            </tr>
                                            <tr>
                                                <td height="30" colspan="1" align="right"><strong>Verification Code<span class="messagesred">*</span></strong></td>
                                                <td height="30" colspan="2"><input type="text" class="input_small" name="vercode" id="varcode"  />
                                                    &nbsp;<img src="../captchaone.jsp" /></td>
                                            </tr>


                                        </table></td>
                                </tr>
                            </table></td>
                    </tr>
                    <tr>
                        <td align="left" valign="top">&nbsp;</td>
                    </tr>
                    <tr>
                        <td width="21%" height="43" align="center" valign="top"><input name="Submit" type="submit" class="button2" value="Update" /></td>
                    </tr>

                </table></td>
        </tr>
    </table>
</form>
<% } catch (Exception e) {
                out.println(e);
            }
%>		
<%@include file="footer.jsp" %>